package com.hqyj.tmall.service.serviceImpl;

import com.hqyj.mapper.UserAddressMapper;
import com.hqyj.pojo.UserAddress;
import com.hqyj.tmall.service.UserAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserAddressServiceImpl implements UserAddressService {
    @Resource
    private UserAddressMapper userAddressMapper;

    @Override
    public List<UserAddress> selectAllByUserId(Integer userId) {
        List<UserAddress> userAddressList=userAddressMapper.selectAllByUserId(userId);
        return userAddressList;
    }
}
